/*
 * Created on 2005-6-9
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.linkage.lcims.base.po.customer;

import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
 * @author Administrator
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
@SuppressWarnings("serial")
public class MCustomer implements Serializable {
	/** identifier field */
    private String customername;
    
    /** persistent field */
    private Integer customertype;
    
    /** persistent field */
    private String accounttype;
    
    /** persistent field */
    private String areano;

    /** nullable persistent field */
    private String realname;
    
    /** nullable persistent field */
    private Date birthday;
    
    /** nullable persistent field */
    private String corpname;
    
    /** nullable persistent field */
    private Integer certtype;
    
    /** nullable persistent field */
    private String certificate;
    
    /** nullable persistent field */
    private Integer sex;
    
    /** nullable persistent field */
    private Integer occtype;
    
    /** nullable persistent field */
    private Integer tradetype;
    
    /** nullable persistent field */
    private Integer educode;
    
    /** nullable persistent field */
    private String address;
    
    /** nullable persistent field */
    private String contactman;
    
    /** nullable persistent field */
    private String contactphone;
    
    /** nullable persistent field */
    private String email;
    
    /** persistent field */
    private Date opendate;
    
    /** nullable persistent field */
    private Date moddate;
    
    /** nullable persistent field */
    private String modoperator;
    
    /** persistent field */
    private String openoperator;
    
    /** nullable persistent field */
    private String servicelist;
    
    /** nullable persistent field */
    private String description;
    
    /** minimal constructor */
    public MCustomer(String customername) {
        this.customername = customername;
    }

    /** default constructor */
    public MCustomer() {
    }

    public String getCustomername() {
        return this.customername;
    }

    public void setCustomername(String customername) {
        this.customername = customername;
    }
    
    
    public Integer getCustomertype() {
        return this.customertype;
    }

    public void setCustomertype(Integer customertype) {
        this.customertype = customertype;
    }
    
    public String getAccounttype() {
        return this.accounttype;
    }

    public void setAccounttype(String accounttype) {
        this.accounttype = accounttype;
    }

    public String getAreano() {
        return this.areano;
    }

    public void setAreano(String areano) {
        this.areano = areano;
    }
    
    public String getRealname() {
        return this.realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }
    
    public Date getBirthday() {
        return this.birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
    
    public String getCorpname() {
        return this.corpname;
    }

    public void setCorpname(String corpname) {
        this.corpname = corpname;
    }
    
    public Integer getCerttype() {
        return this.certtype;
    }

    public void setCerttype(Integer certtype) {
        this.certtype = certtype;
    }
    
    public String getCertificate() {
        return this.certificate;
    }

    public void setCertificate(String certificate) {
        this.certificate = certificate;
    }
    
    public Integer getSex() {
        return this.sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
    
    public Integer getOcctype() {
        return this.occtype;
    }

    public void setOcctype(Integer occtype) {
        this.occtype = occtype;
    }
    
    public Integer getTradetype() {
        return this.tradetype;
    }

    public void setTradetype(Integer tradetype) {
        this.tradetype = tradetype;
    }
    
    public Integer getEducode() {
        return this.educode;
    }

    public void setEducode(Integer educode) {
        this.educode = educode;
    }
    
    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    
    public String getContactman() {
        return this.contactman;
    }

    public void setContactman(String contactman) {
        this.contactman = contactman;
    }
    
    public String getContactphone() {
        return this.contactphone;
    }

    public void setContactphone(String contactphone) {
        this.contactphone = contactphone;
    }
    
    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    
    public Date getOpendate() {
        return this.opendate;
    }

    public void setOpendate(Date opendate) {
        this.opendate = opendate;
    }
    
    
    public Date getModdate() {
        return this.moddate;
    }

    public void setModdate(Date moddate) {
        this.moddate = moddate;
    }
    
    public String getModoperator() {
        return this.modoperator;
    }

    public void setModoperator(String modoperator) {
        this.modoperator = modoperator;
    }
    
    public String getOpenoperator() {
        return this.openoperator;
    }

    public void setOpenoperator(String openoperator) {
        this.openoperator = openoperator;
    }
    
    public String getServicelist() {
        return this.servicelist;
    }

    public void setServicelist(String servicelist) {
        this.servicelist = servicelist;
    }
    
    
    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    
    public String toString() {
        return new ToStringBuilder(this)
            .append("customername", getCustomername())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof MCustomer) ) return false;
        MCustomer castOther = (MCustomer) other;
        return new EqualsBuilder()
            .append(this.getCustomername(), castOther.getCustomername())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCustomername())
            .toHashCode();
    }
    
}
